package cn.bugstack.infrastructure.dao;

import cn.bugstack.domain.trade.model.entity.NotifyTaskEntity;
import cn.bugstack.infrastructure.dao.po.NotifyTask;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author: 小新
 * @Date: 2025/8/10 9:00
 * @Description:
 * @Version: v1.0
 */
@Mapper
public interface NotifyTaskDao {
   void insert(NotifyTask notifyTask);
   
    int updateNotifyTaskStatusSuccess(String teamId);

    int updateNotifyTaskStatusError(String teamId);

    int updateNotifyTaskStatusRetry(String teamId);

    List<NotifyTaskEntity> queryUnExecutedNotifyTaskList();

    NotifyTask queryUnExecutedNotifyTaskByTeamId(String teamId);
}
